package com.csu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csu.mall.common.utils.PageUtils;
import com.csu.mall.product.entity.AttrEntity;
import com.csu.mall.product.entity.AttrGroupEntity;
import com.csu.mall.product.vo.AttrGroupVo;
import com.csu.mall.product.vo.AttrVo;
import com.csu.mall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zhenhuanli
 * @email 743879362@qq.com
 * @date 2022-09-16 11:42:54
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(long catelogId,Map<String, Object> params);

    AttrGroupEntity getAttrGroup(Long attrGroupId);

    List<AttrEntity> getAttrsOfAttrGroup(Long attrgroupId);

    void deleteAttrsOfAttrGroup(List<AttrVo> attrVos);

    PageUtils selectEnableAttr(Long attrgroupId);

    void saveBatchAttrAttrGroup(List<AttrVo> attrVos);

    List<AttrGroupVo> getAttrGroupAndAttr(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

